(function(){
	namespace('org.jsmud.entity');
	
	org.jsmud.entity.Item = function(itemService, data){
		this.data = data;
		this.type = 'item';
		this.__itemService = itemService;
	};
	org.jsmud.entity.Item.prototype = {
		save : function(onDone){
			this.__itemService.save(this.data, onDone);
		},
		getId : function(){
			return this.data._id;
		},
		refresh :function(){
			
		}
	};
})();